package com.note.chh.notebook.Adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.note.chh.notebook.Model.SingerListModel;
import com.note.chh.notebook.R;

/**
 * Created by caihuahui on 2018/3/30.
 */

public class SingerListAdapter extends BaseQuickAdapter<SingerListModel.SingersBean.ListBean.InfoBean,BaseViewHolder> {
    public SingerListAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, SingerListModel.SingersBean.ListBean.InfoBean item) {
        ImageView mImage_pic = helper.getView(R.id.mImage_pic);
        Glide.with(mContext).load(item.getImgurl().replace("{size}","240")).into(mImage_pic);
        helper.setText(R.id.mText_singerName,item.getSingername());
    }
}
